﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="Camera-List.aspx.cs" Inherits="Camera_List" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
 <div class="portlet box green">
        <div class="portlet-title">
            <div class="caption">
                <i class="icon-globe"></i>Camera List</div>
            <div class="actions">
                <div class="btn-group">
                    <a class="btn" href="#" data-toggle="dropdown">Columns <i class="icon-angle-down"></i>
                    </a>
                    <div id="sample_2_column_toggler" class="dropdown-menu hold-on-click dropdown-checkboxes pull-right">
                        <label>
                            <input type="checkbox" checked data-column="0">Name</label>
                        <label>
                            <input type="checkbox" checked data-column="1">Action/label>
                    </div>
                </div>
            </div>
        </div>
        <div class="portlet-body">
            <table class="table table-striped table-bordered table-hover table-full-width" id="sample_2">
                <thead>
                    <tr>
                        <th>
                            Name
                        </th>
                        <th class="hidden-480">
                            Action
                        </th>
                    </tr>
                </thead>
                <tbody>
                    <asp:Repeater ID="rptCamera" runat="server">
                        <ItemTemplate>
                            <tr>
                                <td>
                                    <%# Eval("Name")%>
                                </td>
                                <td>
                                    <center>
                                        <a href='Add-Camera.aspx?Id=<%# Eval("Id") %>' title="Edit" class="with-tip">
                                            <img src="img/pencil.png" width="16" height="16" alt="Edit"></a>
                                        <asp:HiddenField runat="server" ID="hdf" Value='<%# Eval("name") %>' />
                                        <asp:LinkButton runat="server" ID="lnkDelete" OnClientClick="callAlert(this);return false;"
                                            OnClick="OnDelete" CommandArgument='<%# Eval("Id") %>' Text="delete">
                                              <img src="img/cross-circle.png" width="16" height="16" alt="Delete">
                                        </asp:LinkButton>
                                    </center>
                                </td>
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>
                </tbody>
            </table>
        </div>
    </div>
</asp:Content>

